package com.whpu.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whpu.common.utils.PageUtils;
import com.whpu.mall.ware.entity.PurchaseEntity;
import com.whpu.mall.ware.vo.MergeVo;
import com.whpu.mall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author FanboKai
 * @email fanbokai163@163.com
 * @date 2020-11-20 23:19:07
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //获取所有未被分配的采购单
    PageUtils purchaseUnreceive(Map<String, Object> params);

    //合并采购单
    void mergePurchase(MergeVo mergeVo);

    //领取采购单
    void receivedPurchase(List<Long> ids);

    //条件查询采购单
    PageUtils queryPageByCondition(Map<String, Object> params);

    //完成采购单
    void purchaseDone(PurchaseDoneVo doneVo);
}

